package com.da.javatest.job;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author JokerDa.
 * @date 2024/11/28 13:53
 * Description:
 */
public class JobHandle implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDataMap dataMap = context.getMergedJobDataMap();
        if (dataMap.getString("aa").equals("aa")) {
            System.out.println("123");
        } else {
            System.out.println("321");
        }
    }
}
